<script setup lang="ts">
let userinfo = [{
  id: 0,
  name: '张三',
  age: 18
}, {
  id: 1,
  name: '李四',
  age: 19
},
  {
    id: 2,
    name: '王五',
    age: 20
  }
]
</script>

<template>
  <div class="userInfoList">
    <div class="userInfo" v-for="(user, index) in userinfo" :key="index">
      <slot :user="user" :index="index" name="user"></slot>
    </div>
  </div>
</template>

<style scoped>

</style>
